Option Strict On
Option Explicit On 

Public Class UDefault
    Inherits System.Windows.Forms.UserControl

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents lblName As System.Windows.Forms.Label
    Friend WithEvents txtName As System.Windows.Forms.TextBox
    Friend WithEvents ErrorProvider1 As System.Windows.Forms.ErrorProvider
    Friend WithEvents cboDataField As System.Windows.Forms.ComboBox
    Friend WithEvents lblDataField As System.Windows.Forms.Label
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(UDefault))
        Me.lblName = New System.Windows.Forms.Label
        Me.txtName = New System.Windows.Forms.TextBox
        Me.cboDataField = New System.Windows.Forms.ComboBox
        Me.lblDataField = New System.Windows.Forms.Label
        Me.ErrorProvider1 = New System.Windows.Forms.ErrorProvider
        Me.SuspendLayout()
        '
        'lblName
        '
        Me.lblName.AccessibleDescription = resources.GetString("lblName.AccessibleDescription")
        Me.lblName.AccessibleName = resources.GetString("lblName.AccessibleName")
        Me.lblName.Anchor = CType(resources.GetObject("lblName.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.lblName.AutoSize = CType(resources.GetObject("lblName.AutoSize"), Boolean)
        Me.lblName.Dock = CType(resources.GetObject("lblName.Dock"), System.Windows.Forms.DockStyle)
        Me.lblName.Enabled = CType(resources.GetObject("lblName.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.lblName, resources.GetString("lblName.Error"))
        Me.lblName.Font = CType(resources.GetObject("lblName.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.lblName, CType(resources.GetObject("lblName.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.lblName, CType(resources.GetObject("lblName.IconPadding"), Integer))
        Me.lblName.Image = CType(resources.GetObject("lblName.Image"), System.Drawing.Image)
        Me.lblName.ImageAlign = CType(resources.GetObject("lblName.ImageAlign"), System.Drawing.ContentAlignment)
        Me.lblName.ImageIndex = CType(resources.GetObject("lblName.ImageIndex"), Integer)
        Me.lblName.ImeMode = CType(resources.GetObject("lblName.ImeMode"), System.Windows.Forms.ImeMode)
        Me.lblName.Location = CType(resources.GetObject("lblName.Location"), System.Drawing.Point)
        Me.lblName.Name = "lblName"
        Me.lblName.RightToLeft = CType(resources.GetObject("lblName.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.lblName.Size = CType(resources.GetObject("lblName.Size"), System.Drawing.Size)
        Me.lblName.TabIndex = CType(resources.GetObject("lblName.TabIndex"), Integer)
        Me.lblName.Text = resources.GetString("lblName.Text")
        Me.lblName.TextAlign = CType(resources.GetObject("lblName.TextAlign"), System.Drawing.ContentAlignment)
        Me.lblName.Visible = CType(resources.GetObject("lblName.Visible"), Boolean)
        '
        'txtName
        '
        Me.txtName.AccessibleDescription = resources.GetString("txtName.AccessibleDescription")
        Me.txtName.AccessibleName = resources.GetString("txtName.AccessibleName")
        Me.txtName.Anchor = CType(resources.GetObject("txtName.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.txtName.AutoSize = CType(resources.GetObject("txtName.AutoSize"), Boolean)
        Me.txtName.BackgroundImage = CType(resources.GetObject("txtName.BackgroundImage"), System.Drawing.Image)
        Me.txtName.Dock = CType(resources.GetObject("txtName.Dock"), System.Windows.Forms.DockStyle)
        Me.txtName.Enabled = CType(resources.GetObject("txtName.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.txtName, resources.GetString("txtName.Error"))
        Me.txtName.Font = CType(resources.GetObject("txtName.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.txtName, CType(resources.GetObject("txtName.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.txtName, CType(resources.GetObject("txtName.IconPadding"), Integer))
        Me.txtName.ImeMode = CType(resources.GetObject("txtName.ImeMode"), System.Windows.Forms.ImeMode)
        Me.txtName.Location = CType(resources.GetObject("txtName.Location"), System.Drawing.Point)
        Me.txtName.MaxLength = CType(resources.GetObject("txtName.MaxLength"), Integer)
        Me.txtName.Multiline = CType(resources.GetObject("txtName.Multiline"), Boolean)
        Me.txtName.Name = "txtName"
        Me.txtName.PasswordChar = CType(resources.GetObject("txtName.PasswordChar"), Char)
        Me.txtName.RightToLeft = CType(resources.GetObject("txtName.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.txtName.ScrollBars = CType(resources.GetObject("txtName.ScrollBars"), System.Windows.Forms.ScrollBars)
        Me.txtName.Size = CType(resources.GetObject("txtName.Size"), System.Drawing.Size)
        Me.txtName.TabIndex = CType(resources.GetObject("txtName.TabIndex"), Integer)
        Me.txtName.Text = resources.GetString("txtName.Text")
        Me.txtName.TextAlign = CType(resources.GetObject("txtName.TextAlign"), System.Windows.Forms.HorizontalAlignment)
        Me.txtName.Visible = CType(resources.GetObject("txtName.Visible"), Boolean)
        Me.txtName.WordWrap = CType(resources.GetObject("txtName.WordWrap"), Boolean)
        '
        'cboDataField
        '
        Me.cboDataField.AccessibleDescription = resources.GetString("cboDataField.AccessibleDescription")
        Me.cboDataField.AccessibleName = resources.GetString("cboDataField.AccessibleName")
        Me.cboDataField.Anchor = CType(resources.GetObject("cboDataField.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.cboDataField.BackgroundImage = CType(resources.GetObject("cboDataField.BackgroundImage"), System.Drawing.Image)
        Me.cboDataField.Dock = CType(resources.GetObject("cboDataField.Dock"), System.Windows.Forms.DockStyle)
        Me.cboDataField.Enabled = CType(resources.GetObject("cboDataField.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.cboDataField, resources.GetString("cboDataField.Error"))
        Me.cboDataField.Font = CType(resources.GetObject("cboDataField.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.cboDataField, CType(resources.GetObject("cboDataField.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.cboDataField, CType(resources.GetObject("cboDataField.IconPadding"), Integer))
        Me.cboDataField.ImeMode = CType(resources.GetObject("cboDataField.ImeMode"), System.Windows.Forms.ImeMode)
        Me.cboDataField.IntegralHeight = CType(resources.GetObject("cboDataField.IntegralHeight"), Boolean)
        Me.cboDataField.ItemHeight = CType(resources.GetObject("cboDataField.ItemHeight"), Integer)
        Me.cboDataField.Location = CType(resources.GetObject("cboDataField.Location"), System.Drawing.Point)
        Me.cboDataField.MaxDropDownItems = CType(resources.GetObject("cboDataField.MaxDropDownItems"), Integer)
        Me.cboDataField.MaxLength = CType(resources.GetObject("cboDataField.MaxLength"), Integer)
        Me.cboDataField.Name = "cboDataField"
        Me.cboDataField.RightToLeft = CType(resources.GetObject("cboDataField.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.cboDataField.Size = CType(resources.GetObject("cboDataField.Size"), System.Drawing.Size)
        Me.cboDataField.TabIndex = CType(resources.GetObject("cboDataField.TabIndex"), Integer)
        Me.cboDataField.Text = resources.GetString("cboDataField.Text")
        Me.cboDataField.Visible = CType(resources.GetObject("cboDataField.Visible"), Boolean)
        '
        'lblDataField
        '
        Me.lblDataField.AccessibleDescription = resources.GetString("lblDataField.AccessibleDescription")
        Me.lblDataField.AccessibleName = resources.GetString("lblDataField.AccessibleName")
        Me.lblDataField.Anchor = CType(resources.GetObject("lblDataField.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.lblDataField.AutoSize = CType(resources.GetObject("lblDataField.AutoSize"), Boolean)
        Me.lblDataField.Dock = CType(resources.GetObject("lblDataField.Dock"), System.Windows.Forms.DockStyle)
        Me.lblDataField.Enabled = CType(resources.GetObject("lblDataField.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.lblDataField, resources.GetString("lblDataField.Error"))
        Me.lblDataField.Font = CType(resources.GetObject("lblDataField.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.lblDataField, CType(resources.GetObject("lblDataField.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.lblDataField, CType(resources.GetObject("lblDataField.IconPadding"), Integer))
        Me.lblDataField.Image = CType(resources.GetObject("lblDataField.Image"), System.Drawing.Image)
        Me.lblDataField.ImageAlign = CType(resources.GetObject("lblDataField.ImageAlign"), System.Drawing.ContentAlignment)
        Me.lblDataField.ImageIndex = CType(resources.GetObject("lblDataField.ImageIndex"), Integer)
        Me.lblDataField.ImeMode = CType(resources.GetObject("lblDataField.ImeMode"), System.Windows.Forms.ImeMode)
        Me.lblDataField.Location = CType(resources.GetObject("lblDataField.Location"), System.Drawing.Point)
        Me.lblDataField.Name = "lblDataField"
        Me.lblDataField.RightToLeft = CType(resources.GetObject("lblDataField.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.lblDataField.Size = CType(resources.GetObject("lblDataField.Size"), System.Drawing.Size)
        Me.lblDataField.TabIndex = CType(resources.GetObject("lblDataField.TabIndex"), Integer)
        Me.lblDataField.Text = resources.GetString("lblDataField.Text")
        Me.lblDataField.TextAlign = CType(resources.GetObject("lblDataField.TextAlign"), System.Drawing.ContentAlignment)
        Me.lblDataField.Visible = CType(resources.GetObject("lblDataField.Visible"), Boolean)
        '
        'ErrorProvider1
        '
        Me.ErrorProvider1.ContainerControl = Me
        Me.ErrorProvider1.Icon = CType(resources.GetObject("ErrorProvider1.Icon"), System.Drawing.Icon)
        '
        'UDefault
        '
        Me.AccessibleDescription = resources.GetString("$this.AccessibleDescription")
        Me.AccessibleName = resources.GetString("$this.AccessibleName")
        Me.AutoScroll = CType(resources.GetObject("$this.AutoScroll"), Boolean)
        Me.AutoScrollMargin = CType(resources.GetObject("$this.AutoScrollMargin"), System.Drawing.Size)
        Me.AutoScrollMinSize = CType(resources.GetObject("$this.AutoScrollMinSize"), System.Drawing.Size)
        Me.BackgroundImage = CType(resources.GetObject("$this.BackgroundImage"), System.Drawing.Image)
        Me.Controls.Add(Me.cboDataField)
        Me.Controls.Add(Me.lblDataField)
        Me.Controls.Add(Me.lblName)
        Me.Controls.Add(Me.txtName)
        Me.Enabled = CType(resources.GetObject("$this.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me, resources.GetString("$this.Error"))
        Me.Font = CType(resources.GetObject("$this.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me, CType(resources.GetObject("$this.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me, CType(resources.GetObject("$this.IconPadding"), Integer))
        Me.ImeMode = CType(resources.GetObject("$this.ImeMode"), System.Windows.Forms.ImeMode)
        Me.Location = CType(resources.GetObject("$this.Location"), System.Drawing.Point)
        Me.Name = "UDefault"
        Me.RightToLeft = CType(resources.GetObject("$this.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.Size = CType(resources.GetObject("$this.Size"), System.Drawing.Size)
        Me.ResumeLayout(False)

    End Sub

#End Region

    'Public Event ValueChanged As EventHandler

    'Private Sub UCompute_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    '    AddHandler txtName.TextChanged, AddressOf OnValueChanged
    '    AddHandler cboDataField.TextChanged, AddressOf OnValueChanged
    'End Sub
    'Private Sub txtName_Validated(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtName.Validated
    '    If txtName.Text = "" Then
    '        ErrorProvider1.SetError(txtName, "Default Name is required.")
    '    Else
    '        ErrorProvider1.SetError(txtName, "")
    '    End If
    'End Sub

    'Protected Sub OnValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
    '    RaiseEvent ValueChanged(Me, New EventArgs)
    'End Sub

    'Public Sub Prepare(ByVal table As Model10.Table)
    '    cboDataField.Items.Clear()

    '    Dim col As DataColumn
    '    For Each col In table.DataTable.Columns
    '        If Not table Is col Then cboDataField.Items.Add(col.ColumnName)
    '    Next : col = Nothing
    'End Sub

    'Public Sub Read(ByVal [default] As Model10.Default)
    '    txtName.Text = [default].Name
    '    cboDataField.Text = [default].DataField
    'End Sub
    'Public Sub Write(ByVal [default] As Model10.Default)
    '    [default].Name = txtName.Text
    '    [default].DataField = cboDataField.Text
    'End Sub
End Class